package com.ruoyi.pidaijiData.domain.plat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.convert.ArrayToJsonDeserializer;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.pad.ChartLineDTO;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 皮带机油压测试数据对象 data_pidaiji_yy
 * 
 * @author ruoyi
 * @date 2024-03-04
 */
public class DataPidaijiYy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 油压id */
    private Long yyId;

    /** 任务id */
    @Excel(name = "任务id")
    private Long dataTaskId;

    /** 平板id */
    private Long id;

    /** 平板任务id */
    @Excel(name = "平板任务id")
    private Long taskId;

    /** 油压List */
    @Excel(name = "油压List")
    @JsonDeserialize(using = ArrayToJsonDeserializer.class)
    private String youYaList;

    /**
     * 油压Svg
     */
    private String yySvg;

    /** 油压线 */
    private ChartLineDTO yyChartLineDTO;

    /** 最大跳动振幅 */
    @Excel(name = "最大跳动振幅")
    private String maxVel;

    /** 保存时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "保存时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date saveTime;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setYyId(Long yyId) 
    {
        this.yyId = yyId;
    }

    public Long getYyId() 
    {
        return yyId;
    }
    public void setDataTaskId(Long dataTaskId) 
    {
        this.dataTaskId = dataTaskId;
    }

    public Long getDataTaskId() 
    {
        return dataTaskId;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setYouYaList(String youYaList) 
    {
        this.youYaList = youYaList;
    }

    public String getYouYaList() 
    {
        return youYaList;
    }
    public void setMaxVel(String maxVel) 
    {
        this.maxVel = maxVel;
    }

    public String getMaxVel() 
    {
        return maxVel;
    }
    public void setSaveTime(Date saveTime) 
    {
        this.saveTime = saveTime;
    }

    public Date getSaveTime() 
    {
        return saveTime;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public ChartLineDTO getYyChartLineDTO() {
        return yyChartLineDTO;
    }

    public void setYyChartLineDTO(ChartLineDTO yyChartLineDTO) {
        this.yyChartLineDTO = yyChartLineDTO;
    }

    public String getYySvg() {
        return yySvg;
    }

    public void setYySvg(String yySvg) {
        this.yySvg = yySvg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("yyId", getYyId())
            .append("dataTaskId", getDataTaskId())
            .append("id", getId())
            .append("taskId", getTaskId())
            .append("youYaList", getYouYaList())
            .append("maxVel", getMaxVel())
            .append("saveTime", getSaveTime())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
